package org.example.domain;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 包裹对象 express_package
 *
 * @author ruoyi
 * @date 2024-08-26
 */
public class ExpressPackage implements Serializable {
    private Integer id;
    private Integer cabinetid;   //柜箱id外键
    private Integer deliveryid;  //派件人id外键
    private Integer extractorid;  //取件人id外键
    private Integer paymentid;  //付款ID外键
    private Integer status;  //包裹状态
    private Integer timeX;  //时间线ID外键
    private Integer baoguoid;  //包裹单号
    private Integer zhiliu;  //滞留时间



    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    LocalDateTime timestamp;
    //柜机编号
    String machineCode;
    //柜机所在地区
    String location;
    //柜机详细地址
    String address;
    //派件人手机号
    String phone;
    //派件成功次数
    Integer num;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCabinetid() {
        return cabinetid;
    }

    public void setCabinetid(Integer cabinetid) {
        this.cabinetid = cabinetid;
    }

    public Integer getDeliveryid() {
        return deliveryid;
    }

    public void setDeliveryid(Integer deliveryid) {
        this.deliveryid = deliveryid;
    }

    public Integer getExtractorid() {
        return extractorid;
    }

    public void setExtractorid(Integer extractorid) {
        this.extractorid = extractorid;
    }

    public Integer getPaymentid() {
        return paymentid;
    }

    public void setPaymentid(Integer paymentid) {
        this.paymentid = paymentid;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getTimeX() {
        return timeX;
    }

    public void setTimeX(Integer timeX) {
        this.timeX = timeX;
    }

    public Integer getBaoguoid() {
        return baoguoid;
    }

    public void setBaoguoid(Integer baoguoid) {
        this.baoguoid = baoguoid;
    }

    public Integer getZhiliu() {
        return zhiliu;
    }

    public void setZhiliu(Integer zhiliu) {
        this.zhiliu = zhiliu;
    }

    public LocalDateTime getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(LocalDateTime timestamp) {
        this.timestamp = timestamp;
    }

    public String getMachineCode() {
        return machineCode;
    }

    public void setMachineCode(String machineCode) {
        this.machineCode = machineCode;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "ExpressPackage{" +
                "id=" + id +
                ", cabinetid=" + cabinetid +
                ", deliveryid=" + deliveryid +
                ", extractorid=" + extractorid +
                ", paymentid=" + paymentid +
                ", status=" + status +
                ", timeX=" + timeX +
                ", baoguoid=" + baoguoid +
                ", zhiliu=" + zhiliu +
                ", timestamp=" + timestamp +
                ", machineCode='" + machineCode + '\'' +
                ", location='" + location + '\'' +
                ", address='" + address + '\'' +
                ", phone='" + phone + '\'' +
                ", num=" + num +
                '}';
    }
}
